home *** CD-ROM | disk | FTP | other *** search
- Path: news.ov.com!news
- From: glenn@ov.com (Fletcher.Glenn@ov.com)
- Newsgroups: comp.lang.c
- Subject: Re: a pointer problem
- Date: 5 Feb 1996 17:28:08 GMT
- Organization: OpenVision
- Message-ID: <4f5en8$oll@spanky.pls.ov.com>
- References: <4errk0$4c3@srvr1.engin.umich.edu>
- Reply-To: glenn@ov.com
- NNTP-Posting-Host: foghorn.pls.ov.com
-
- In article 4c3@srvr1.engin.umich.edu, cjlin@news-server.engin.umich.edu (Chih-Jen Lin) writes:
- >Hi,
- >
- >This is an old problem of C. I remember a pointer may point
- >to any one address when it's declaired. Is there any way to
- >avoid this problem in ANSI C ? Or how can I let a variable be
- >NULL while it's declaired ?
- >
- >Thanks in advance.
- >
- >Chih-Jen Lin
-
-
- It doesn't matter when you initialize a pointer, as long as you
- always initialize it before you dereference it. It has always
- been the rule in any computer language to write memory before
- you read it. (This isn't news, is it?)
-
- Fletcher.Glenn@ov.com
-
-
-